class StartView extends egret.Sprite {
	public static START_VIEW:string="startview";//设置的切换场景

	private backdropView = new BackdropGame();//背景层

	private peopleView= new PeopleGame();//人物

	private darknessView = new BackgroundConfig();//遮盖层

	private butView = new ClickBut();//按钮层

	public constructor() {
		super();
	}
	// 初始化
	public init(){
		this.addChild(this.backdropView);// 背景 
		
		
		this.addChild(this.peopleView);// 人物
		
		this.addChild(this.darknessView);// 遮盖层

		this.addChild(this.butView);//按钮层
		
		this.butView.start();

		let a = localStorage.getItem("ciNum").length;//次数长度

		let b = localStorage.getItem("ciNum");//次数值
		
		let c = "_png";
		// console.log(b)
		if(a == 1){
			this.butView.cishuNume.texture =RES.getRes(b + c);
		}else if(a == 2){
			this.butView.cishuNume2.texture =RES.getRes(b[0] + c);
			this.butView.cishuNume.texture =RES.getRes(b[1] + c);
		}
	};
	
	
}